package com.codingxyz.simple.time;

import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;

/**
 * @author 李新飘
 * @version 1.0.0
 * @since JKD 1.8
 */
public class TimeDemo {

    public static void main(String[] args) {
        System.out.println("当前时间=" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
    }
}
